﻿using QMERP.Domain.Dtos;

namespace QMERP.Application.Services
{
    public interface IWarehouseService
    {
        /// <summary>
        /// 获取仓库列表基础数据
        /// </summary>
        /// <returns></returns>
        Task<List<WarehouseResponse>> GetBasicWarehouses();
        /// <summary>
        /// 仓库窗体
        /// </summary>
        /// <returns></returns>
        Task<PageResponse<WarehouseResponse>> Query(PageRequest<WarehouseRequest> request);
        /// <summary>
        /// 获取id的仓库详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<WarehouseResponse> Detail(long id);
        /// <summary>
        /// 仓库保存
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Save(WarehouseSaveRequest request);
    }
}
